package com.neuedu.mblog.controller;

import com.neuedu.mblog.service.DiseaseService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;

/**
 * 项目：his
 * 创建时间：  2021/12/17   11:01
 * 作者 :jshand
 * 描述 : 疾病基础信息的CRUD
 */
@WebServlet(urlPatterns = "/disease")
public class DiseaseController extends BaseController {
    private DiseaseService diseaseService = new DiseaseService();


    @Override
    protected void list(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
            diseaseService.queryListByPage(request);
            request.getRequestDispatcher("/WEB-INF/view/disease/comment_list.jsp").forward(request,response);

        } catch (SQLException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }


    }
}
